﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using WeiXinPF.Modules.CDRT.SmartCity.Domain.Models;

namespace WeiXinPF.Modules.CDRT.SmartCity.Infrastructure.Repositories
{
    public interface IMessageRepository
    {
        void Add(Message entity);
        void Modify(Message entity);
        void Delete(int entityId);
        void Delete(Expression<Func<Message, bool>> predicate);
        IQueryable<Message> GetAllList<TKey>(Expression<Func<Message, bool>> where, Expression<Func<Message, TKey>> order,bool isAsc);
        IQueryable<Message> GetAllList(Expression<Func<Message, bool>> predicate);
        IQueryable<Message> GetAllList();
        Message Get(int id);
        void Delete(Message entity);
        void DeleteList(List<Message> list);
        void SaveChange();
        void Modify(IQueryable<Message> messages);
    }
}
